#pragma once

class cell;
typedef cell *cell_ptr;
typedef const cell *const_cell_ptr;

class cell : public QGraphicsItem
{
public:
    cell(const QPoint &pos);
    ~cell();

    QRectF boundingRect() const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
    void set_color(const QColor &color);

    QPoint get_coord() const
    {
        return coord_;
    }

private:
    qreal space_, radius_;
    QColor color_;
    QPoint coord_;
};

